.class Lcom/estrongs/android/view/d0$f;
.super Ljava/lang/Object;
.source "RemoteGridViewWrapper.java"

# interfaces
.implements Lcom/estrongs/android/ftp/c$b;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/view/d0;->G0()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/ftp/c;

.field final synthetic b:Lcom/estrongs/android/view/d0;


# direct methods
.method constructor <init>(Lcom/estrongs/android/view/d0;Lcom/estrongs/android/ftp/c;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/view/d0$f;->b:Lcom/estrongs/android/view/d0;

    iput-object p2, p0, Lcom/estrongs/android/view/d0$f;->a:Lcom/estrongs/android/ftp/c;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onConnected()V
    .locals 10

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/view/d0$f;->a:Lcom/estrongs/android/ftp/c;

    invoke-virtual {v0}, Lcom/estrongs/android/ftp/c;->a()Lcom/estrongs/android/ftp/a;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_2

    .line 2
    invoke-virtual {v0}, Lcom/estrongs/android/ftp/a;->f()Z

    move-result v2

    if-eqz v2, :cond_2

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/pop/l;->F()I

    move-result v2

    const/4 v3, 0x1

    .line 4
    iget-object v4, p0, Lcom/estrongs/android/view/d0$f;->b:Lcom/estrongs/android/view/d0;

    invoke-static {v4}, Lcom/estrongs/android/view/d0;->b(Lcom/estrongs/android/view/d0;)Z

    move-result v4
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const-string v5, "/"

    const-string v6, ":"

    const-string v7, "ftp:/"

    if-eqz v4, :cond_0

    .line 5
    :try_start_1
    iget-object v4, p0, Lcom/estrongs/android/view/d0$f;->b:Lcom/estrongs/android/view/d0;

    iget-object v8, p0, Lcom/estrongs/android/view/d0$f;->b:Lcom/estrongs/android/view/d0;

    const v9, 0x7f1108df

    invoke-virtual {v8, v9}, Lcom/estrongs/android/view/h0;->c(I)Ljava/lang/String;

    move-result-object v8

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v9, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Lcom/estrongs/android/ftp/a;->d()Ljava/net/InetAddress;

    move-result-object v0

    invoke-virtual {v0}, Ljava/net/InetAddress;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v4, v8, v0}, Lcom/estrongs/android/view/d0;->a(Lcom/estrongs/android/view/d0;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 6
    :cond_0
    iget-object v4, p0, Lcom/estrongs/android/view/d0$f;->b:Lcom/estrongs/android/view/d0;

    invoke-static {v4}, Lcom/estrongs/android/view/d0;->d(Lcom/estrongs/android/view/d0;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 7
    iget-object v4, p0, Lcom/estrongs/android/view/d0$f;->b:Lcom/estrongs/android/view/d0;

    iget-object v8, p0, Lcom/estrongs/android/view/d0$f;->b:Lcom/estrongs/android/view/d0;

    const v9, 0x7f1105f3

    invoke-virtual {v8, v9}, Lcom/estrongs/android/view/h0;->c(I)Ljava/lang/String;

    move-result-object v8

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v9, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Lcom/estrongs/android/ftp/a;->d()Ljava/net/InetAddress;

    move-result-object v0

    invoke-virtual {v0}, Ljava/net/InetAddress;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v4, v8, v0}, Lcom/estrongs/android/view/d0;->a(Lcom/estrongs/android/view/d0;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 8
    :cond_1
    iget-object v4, p0, Lcom/estrongs/android/view/d0$f;->b:Lcom/estrongs/android/view/d0;

    iget-object v8, p0, Lcom/estrongs/android/view/d0$f;->b:Lcom/estrongs/android/view/d0;

    invoke-static {v8}, Lcom/estrongs/android/view/d0;->e(Lcom/estrongs/android/view/d0;)Ljava/lang/String;

    move-result-object v8

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v9, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Lcom/estrongs/android/ftp/a;->d()Ljava/net/InetAddress;

    move-result-object v0

    invoke-virtual {v0}, Ljava/net/InetAddress;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v4, v8, v0}, Lcom/estrongs/android/view/d0;->a(Lcom/estrongs/android/view/d0;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :cond_2
    const/4 v3, 0x0

    .line 9
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/view/d0$f;->a:Lcom/estrongs/android/ftp/c;

    iget-object v2, p0, Lcom/estrongs/android/view/d0$f;->b:Lcom/estrongs/android/view/d0;

    iget-object v2, v2, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-virtual {v0, v2}, Lcom/estrongs/android/ftp/c;->a(Landroid/content/Context;)V

    .line 10
    invoke-static {}, Lcom/estrongs/android/util/f0;->b()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_4

    if-eqz v3, :cond_3

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/view/d0$f;->b:Lcom/estrongs/android/view/d0;

    invoke-static {v0, v1}, Lcom/estrongs/android/view/d0;->a(Lcom/estrongs/android/view/d0;Z)V

    .line 12
    :cond_3
    iget-object v0, p0, Lcom/estrongs/android/view/d0$f;->b:Lcom/estrongs/android/view/d0;

    invoke-static {v0}, Lcom/estrongs/android/view/d0;->c(Lcom/estrongs/android/view/d0;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    .line 13
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_4
    :goto_1
    return-void
.end method
